-- GENERATED SPELL FOR [Perch Guardian] --


function spell0_29013(pUnit, Event) --@Rune Punch,n/a--
pUnit:FullCastSpellOnTarget(52702,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29013', 10331, 1)
end

function Sorts_29013(pUnit, Event)
local choix_sorts_29013 = math.random(0, 0)
if choix_sorts_29013 == 0 then
pUnit:RegisterEvent('spell0_29013', 1, 1)
end
end

function mob29013_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29013', math.random(1500, 3000), 1)
end

function mob29013_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29013_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29013_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29013, 1, 'mob29013_Action')
RegisterUnitEvent(29013, 2, 'mob29013_Leave')
RegisterUnitEvent(29013, 3, 'mob29013_Kill')
RegisterUnitEvent(29013, 4, 'mob29013_Die')
